package com.app.mapper.supermarket;

import com.app.dto.supermarket.MyOddDto;
import com.app.model.AdvertisementModel;
import com.app.model.supermarket.MyOddModel;
import com.app.vo.supermarket.MyOddVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;


@Component
@Mapper
public interface MyOddMapper extends BaseMapper<MyOddDto> {

    void insert(MyOddModel model);

    void update(MyOddModel model);

    void delete(int id);

    List<MyOddModel> getOddByMid(int mid, int state);

    int getCountByOid(int oid);

    int getCountByOidState(int oid);

    int getCountByMid(int mid);

    int getCountByOidAndState(int oid);


    List<MyOddModel> getMyOddMak(MyOddModel model);

    List<MyOddModel> getModelByPid(int mid, int oid);

    MyOddModel getModelByMidAndOid(int mid, int oid);

    int countMid(int mid);//查询数量我接的活


}
